﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient;
using System.Linq;
using System.Web;

namespace elctronixMVC.Models
{
    public class connection
    {

        public static SqlConnection baglanti
        {
            get
            {
                SqlConnection sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings["elec"].ConnectionString);  //elec web.config ten geliyor
                return sqlcon;
            }
        }



    }
}